// import { stringify } from 'qs';
import request from '@/utils/request';
// import { func } from 'prop-types';
// 离职
// 列表接口
export async function dimissionList(params) {
  return request(`/esApi/empDimission/getList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function Add(params) {
  return request(`/esApi/matSubmit/insertMatSub`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 提交运行
export async function updateExce(params) {
  return request(`/esApi/entry/submitExecute`, {
    method: 'POST',
    body: params,
  });
}
export async function Update(params) {
  return request(`/esApi/matSubmit/updateMatSub`, {
    method: 'POST',
    body: params,
  });
}
// 计算补缴
export async function countpay(params) {
  return request(`/esApi/matSubmit/queryMkupPayAmount`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 参保类型
export async function getDictCodeList(params) {
  return request(`/esApi/mdm/nmDict/getItemListByDictCodeAndCorpId`, {
    method: 'POST',
    body: params,
  });
}
// 缴费人员类别
export async function getjoinIdeList(params) {
  return request(`/esApi/joinIde/list`, {
    method: 'POST',
    body: params,
  });
}
// 开始联系查看详情
export async function dimssionDetail(params) {
  return request(`/esApi/empDimission/getEmpDimiInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function contactAdd(params) {
  return request(`/esApi/empDimission/insert`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 离职详情
export async function dimssionDetailInfor(params) {
  return request(`/esApi/empDimission/queryEmpDimiDet`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getDimissionHistory(params) {
  return request(`/esApi/empDimission/getContactHisById`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function contactAddAgin(params) {
  return request(`/esApi/empDimission/update`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 联系
export async function contactAddList(params) {
  return request(`/esApi/entry/insertEntryContRcrd`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 入职办理
// 列表
export async function careerList(params) {
  return request(`/esApi/entry/queryEntryPage`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 详情
export async function getCareerInfor(params) {
  return request(`/esApi/entry/queryEntryDet`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 标记问题人员
export async function signPro(params) {
  return request(`/esApi/problem/entry/insert`, {
    method: 'POST',
    body: params,
  });
}

// 获取问题人员列表
export async function getProList(params) {
  return request(`/esApi/problem/entry/pageList`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员添加问题反馈
export async function insertProbFdbk(params) {
  return request(`/esApi/problem/entry/insertProbFdbk`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员详情中的基本信息
export async function getProBaseList(params) {
  return request(`/osApi/problem/entry/queryProAndDet`, {
    method: 'POST',
    body: params,
  });
}

// 反馈并取消问题人员标记
export async function cancelProbFlag(params) {
  return request(`/esApi/problem/entry/updateProb`, {
    method: 'POST',
    body: params,
  });
}
export async function getCareerMatInfor(params) {
  return request(`/esApi/matSubmit/queryMatPkg`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 分配
export async function allocationList(params) {
  return request(`/esApi/entry/queryEntryAsgnPage`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 领取
export async function allotList(params) {
  return request(`/esApi/entry/allotEntry`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getAllotRuleList(params) {
  return request(`/esApi/allotRule/pageListAllotRule`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function receiveEntryList(params) {
  return request(`/esApi/entry/receiveEntry`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 取消分配
export async function unAllotList(params) {
  return request(`/esApi/entry/unAllotEntry`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getUserList(params) {
  return request(`/esApi/entry/serUserList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getListEs(params) {
  return request(`/mgrApi/user/queryUserByRole`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getListCs(params) {
  return request(`/mgrApi/user/queryUserByRole`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getListCustinfo(params) {
  return request(`/esApi/allotRule/listCustinfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 新增规则
export async function addAllotRule(params) {
  return request(`/esApi/allotRule/addAllotRule`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 修改规则
export async function modifyAllotRule(params) {
  return request(`/esApi/allotRule/updateAllotRule`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 修改规则
export async function deleteRule(params) {
  return request(`/esApi/allotRule/deleteAllotRule`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

//
export async function getProData(params) {
  return request(`/esApi/problem/entry/judgeInsMergFlag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 收材料中险种情况
export async function entrypdArrList(params) {
  return request(`/esApi/entry/entryDetailList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function updateSubmit(params) {
  return request(`/esApi/matSubmit/saveMatAndToExec`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getProgress(params) {
  return request(`/esApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function entryContAddList(params) {
  return request(`/esApi/entry/addEntryContRcrd`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function areaScopeList(params) {
  return request(`/esApi/suppBusiScope/getRespAreaList`, {
    method: 'POST',
    body: params,
  });
}
export async function contTypeList(params) {
  return request(`/esApi/entry/getContList`, {
    method: 'POST',
    body: params,
  });
}
export async function getDownloadInfo(params) {
  return request(`/esApi/entry/downloadEntryTemplate`, {
    method: 'POST',
    body: params,
  });
}
export async function updateBaseData(params) {
  return request(`/esApi/matSubmit/updateEntryBasic`, {
    method: 'POST',
    body: params,
  });
}
export async function updateChareData(params) {
  return request(`/esApi/matSubmit/updateEntryDet`, {
    method: 'POST',
    body: params,
  });
}
export async function getUploadProgress(params) {
  return request(`/esApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: params,
  });
}
export async function getVerifyMatPkg(params) {
  return request(`/esApi/matPkg/verifyMatPkg`, {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileBatch(params) {
  return request(`/esApi/matSubmit/impEntryHdl`, {
    method: 'POST',
    body: params,
  });
}

export async function uploadFile(params) {
  return request(`/esApi/empDimission/uploadExcelRsgnInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function getSelectMkuPay(params) {
  return request(`/esApi/matSubmit/getEntryMkupPay`, {
    method: 'POST',
    body: params,
  });
}

export async function addEntryMkupPay(params) {
  return request(`/esApi/matSubmit/addEntryMkupPay`, {
    method: 'POST',
    body: params,
  });
}

export async function delEntryMkupPay(params) {
  return request(`/esApi/matSubmit/delEntryMkupPay`, {
    method: 'POST',
    body: params,
  });
}
export async function getSuppList(params) {
  return request(`/esApi/entry/querySendSuppIds`, {
    method: 'POST',
    body: params,
  });
}

// 批量联系
export async function uploadFileContact(params) {
  return request(`/esApi/entry/impEntryContact`, {
    method: 'POST',
    body: params,
  });
}
